perm filename QUINE.XGP[S76,JMC] blob sn#212866 filedate 1976-04-26 generic text, type T, neo UTF8
/LMAR=0/XLINE=3/FONT#0=BAXL30/FONT#1=BAXI30/FONT#2=BASB30/FONT#3=SUB/FONT#4=SUP/FONT#5=BASL35/FONT#6=NGR25/FONT#7=XMAS25/FONT#8=FIX25



␈↓ α∧␈↓␈↓ αTA␈αLISP␈αpredicate␈α␈↓↓term␈↓␈αis␈αcalled␈αa␈αtermination␈αtester␈αif␈αfor␈αany␈αS-expression␈α␈↓↓e␈↓,␈α␈↓↓term[e]␈↓␈α=␈αT
␈↓ α∧␈↓if␈αand␈αonly␈αif␈αthe␈αLISP␈αevaluation␈αof␈α␈↓↓e␈↓␈αterminates;␈αotherwise␈α␈↓↓term[e]␈↓␈α=␈αF␈αor␈αis␈αundefined.␈α Thus
␈↓ α∧␈↓we␈αmust␈αhave␈α␈↓↓term[␈↓(CAR␈α(QUOTE␈α(A)))]␈α=␈αT,␈αand␈α␈↓↓term[␈↓((LABEL␈αFOO␈α(LAMBDA␈α(X)␈α(FOO
␈↓ α∧␈↓X)))␈α∀NIL)]␈α∀may␈α∀have␈α∀the␈α∀value␈α∀F␈α∃or␈α∀may␈α∀be␈α∀undefined.␈α∀ Let␈α∀␈↓↓term*␈↓␈α∀be␈α∃the␈α∀S-expression
␈↓ α∧␈↓representation of ␈↓↓term␈↓.

␈↓ α∧␈↓␈↓ αTWrite␈αa␈αLISP␈αfunction␈α
␈↓↓bad␈↓␈αsuch␈αthat␈αfor␈αany␈α
termination␈αtester␈α␈↓↓term␈↓,␈α␈↓↓bad[term*]␈↓␈αis␈α
defined,
␈↓ α∧␈↓but ␈↓↓term[bad[term*]]␈↓ is undefined.  Show that your ␈↓↓bad␈↓ works.

␈↓ α∧␈↓Hint:␈α∪A␈α∪one␈α∩line␈α∪answer␈α∪is␈α∪possible␈α∩using␈α∪␈↓↓subst␈↓␈α∪and␈α∩the␈α∪function␈α∪␈↓↓quine[x]␈α∪=␈α∩subst[x,␈↓X,(X
␈↓ α∧␈↓(QUOTE X))].






































␈↓ α∧␈↓␈↓ ε|1␈↓ ∧